<template>
  <div id="app">
        <router-view></router-view>
  </div>
</template>

<script>

 
export default {
  name: 'app',
  provide(){
    return {
      reload:this.reload
    }
  },
  data() {
    return {
      isRouterShow:true
    }
  },
  methods: {
    async reload(){
      this.isRouterShow = false;
      await this.$nextTick();
      this.isRouterShow = true;
    }
  },
  components: {
  
  },
  // mounted() {
  //     window.onbeforeunload = function () {
  //       let storage = window.localStorage;
  //       storage.clear()
  //     }
  // },
}
</script>

<style>

</style>
